<table class="table table-hover">
    <thead>
        <tr>
            <th width="25%">供应商</th>
            <th width="25%">品类</th>
            <th width="25%">未交货数量</th>
            <th width="25%">未交货金额</th>
        </tr>
    </thead>
    <tr bgcolor='#fff0f5'>
        @foreach($headers as $col)
            @if($col == 'supplier_id')
                <td>TTL</td>
            @else
                <td>{{ array_key_exists($col,$total) ? (is_null($total[$col])  ? 0 : $total[$col]) : '' }}</td>
            @endif
        @endforeach
    </tr>
    <tbody>
        @foreach($paginator as $row)
            <tr>
                <td>{{ \App\Models\Basics\Supplier::getNameById($row->supplier_id) }}</td>
                <td>{{ \App\Models\Product\ProductClassify::getTitleById($row->classify_id) }}</td>
                <td>{{ $row->not_delivery_num }}</td>
                <td>{{ $row->not_delivery_rmb }}</td>
            </tr>
        @endforeach
    </tbody>
</table>
